ngl: Avoid huge intermediate textures
authorMatthias Clasen <mclasen@redhat.com>
Fri, 2 Apr 2021 23:33:44 +0000 (19:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 2 Apr 2021 23:33:44 +0000 (19:33 -0400)
commit8d603dfe99001aafd346aa2ab7b16bc8d1e0a0f9
tree7901d67635bc47e1ce4dcee9b8b76f72b15391a3
parent3ff04976e3a096e82ddefe9848e38b53756ffcbd
ngl: Avoid huge intermediate textures

Instead of rendering the unclipped child to a texture
(and risking blowing the texture size limit, and bad
downscaling), just render the clipped region, and live
with the fact that we can't cache the rendered texture.

This avoid bad artifacts when scrolling long textviews
in rounded clips.
gsk/ngl/gsknglrenderjob.c